import useDictStore from '@/store/modules/dict'

export function getDisplayAlgorithms(algorithmBasic: Nullable<string>) {
  if (!algorithmBasic) return []

  const { base_algorithm } = useDictStore().getDicts('base_algorithm')
  const parts = algorithmBasic.split(',')
  return parts.map((p) => base_algorithm.getLabel(p)) as string[]
}
